<?php

class duxConsumoModel extends Model2
{
    public function __construct() {
        parent::__construct('duxsis.consumos');
    }
    
    public function materialVaciado($id){
        $this->setQuery("
            SELECT * FROM colada
            INNER JOIN consumos ON consumos.idcolada = colada.Id
            INNER JOIN hornos ON colada.maquina = hornos.`id maq`
            INNER JOIN materiales ON materiales.Id = consumos.idmaterial
            WHERE colada.Id = $id
        ");
        return $this->_list();
    }
}

?>
